package Abstract_factory;

/**
 * Created with IntelliJ IDEA.
 * User: Bjarke
 * Date: 20-10-13
 * Time: 17:42
 * To change this template use File | Settings | File Templates.
 */
public abstract class Monster {

    private String name;



    MonsterAttackPower attackPower;
    MonsterAttackRange attackRange;

    abstract void makeMonster();

    public void checkIfVictimIsInRange(){
        System.out.println(getName() + " checks if victim is " + attackRange);
    }

    public void attackTheVictim(){
        System.out.println(getName() + " attacks the victim for " + attackPower);
    }



    public String toString(){
        String infoOnMonster = getName() + " attacks anything " + attackRange + " for " + attackPower;

        return infoOnMonster;

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
